package meta.common.exception;

import meta.common.msg.Message;

public class CmnWarnException extends Exception{

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1L;
    
    protected Message msg;

    public CmnWarnException(String msgKey) {
        this(msgKey, null, null);
    }

    public CmnWarnException(String msgKey, Object[] args) {
        this(msgKey, args, null);
    }

    public CmnWarnException(String msgKey, Object[] args, Throwable cause) {
        super(cause);
        msg = new Message(msgKey, args);
    }

    public Message getMsg() {
        return msg;
    }
}
